/**
 * $Id$
 *
 * Copyright (c) 2014 ChinaSoft International, Ltd. All rights reserved
 * JointForce Project
 *
 */
package com.csi.jf.crucible.common.config;

import java.io.File;


/**
 * @Title: JfConstants.java
 * @Description: <br>
 *               <br>
 * @Company: Chinasofti
 * @Created on 2014-7-3 下午5:11:50
 * @author zhangmh
 * @version $Revision: 1.0 $
 * @since 1.0
 */
public class JfConstants {
    
    /**
     * PTS工作目录
     */
    public static final String PTS_HOME = File.separator +"ResourceOneHome"+ File.separator +"JointForce"+ File.separator +"jfpts";
    /**
     * sonar分析的工作目录
     */
    public static final String PTS_WORKSPACE_HOME = PTS_HOME + File.separator +"workspace";
    /**
     * 存储代码包库路径
     */
    public static final String PTS_PACKAGE_HOME = PTS_HOME + File.separator +"code";
    
    public static final String LOGIN_USER = "jf_pts_user";
    
    /**===================================================
     * 用户角色
     *====================================================/
    /**
     * 项目经理
     */
    public static final String ROLE_PM = "PM";
    /**
     * 项目成员
     */
    public static final String ROLE_DEV = "DEV";
    /**
     * PTS运营商
     */
    public static final String ROLE_OPT = "OPT";
    /**
     * PTS专家
     */
    public static final String ROLE_PRO = "PRO";
    
    /**
     * 专家服务状态常量
     */
    public static final String PTS_SERVICE_CHECK = "0";//待审批
    public static final String PTS_SERVICE_CHECHING = "1";//审批中
    public static final String PTS_SERVICE_DOING = "2";//进行中
    public static final String PTS_SERVICE_DONE = "3";//已完成
    
    public static final String PTS_SERVICE_CHECKH = "待审批";//待审批
    public static final String PTS_SERVICE_CHECHINGH = "审批中";//审批中
    public static final String PTS_SERVICE_DOINGH = "进行中";//进行中
    public static final String PTS_SERVICE_DONEH = "已完成";//已完成
    
    public static final String PROJECT_ID = "projectId";
    public static final String PROJECT_NAME = "projectName";
    
    /**
     * 服务订单状态常量
     * 0==> 待分配
     * 1==> 执行中
     * 2==> 待验收
     * 3==> 已完成（未评价）
     * 4==> 已完成（已评价）
     */
    public static final String PTS_ORDER_APPLY="0";
    public static final String PTS_ORDER_HANDLE="1";
    public static final String PTS_ORDER_UNCHECK="2";
    public static final String PTS_ORDER_FINISH_NOCOM="3";
    public static final String PTS_ORDER_FINISH_COM="4";
    
    /**
     * 工具服务状态常量
     * 0==> 未开通
     * 1==> 已开通未使用
     * 2==> 正在使用
     */
    public static final Integer PTS_TOOL_UNOPEN=Integer.valueOf("0");
    public static final Integer PTS_TOOL_UNUSE=Integer.valueOf("1");
    public static final Integer PTS_TOOL_USEING=Integer.valueOf("2");
    
    /**
     * review状态 系统中目前只记录开始和关闭状态
     */
    
    public static final String PTS_REVIEW_UNSTART="0";//开始评审
    public static final String PTS_REVIEW_FINISHED="1";//评审结束、关闭
}
